<div class="container-fluid">
  <%= form_for [@truck, @truck_attribute], :html => { :class => 'form-horizontal' } do |f| %>
  <legend><%= controller.action_name.capitalize %> property for <%=@truck.name%></legend>
  <div class="row-fluid">
    <div class="span12">
      <div class="row-fluid">
        <div class="span6">
          <label>Property name</label>
          <%= f.select :truck_attribute_type_id, options_from_collection_for_select(TruckAttributeType.all, :id, :name), {}, :class => 'span12' %>
        </div>
        <div class="span6">
          <label>Value</label>
          <%= f.text_field :value, :class => 'span12' %>
        </div>
      </div>            
    </div>
  </div>
  <div class="form-actions">
    <%= f.submit 'Add property', :class => 'btn btn-primary' %>
    <%= link_to 'Cancel', trucks_path, :class => 'btn' %>
  </div>
  <!--/row-->
  <% end %>
</div>
<!--/.fluid-container-->
